import request from '@/utils/request'

// 查询appuser列表
export function listList(query) {
  return request({
    url: '/profession/list/list',
    method: 'get',
    params: query
  })
}

// 查询appuser详细
export function getList(id) {
  return request({
    url: '/profession/list/' + id,
    method: 'get'
  })
}

// 新增appuser
export function addList(data) {
  return request({
    url: '/profession/list',
    method: 'post',
    data: data
  })
}

// 修改appuser
export function updateList(data) {
  return request({
    url: '/profession/list',
    method: 'put',
    data: data
  })
}

// 删除appuser
export function delList(id) {
  return request({
    url: '/profession/list/' + id,
    method: 'delete'
  })

}
  // 获取邀请码
  export function addCode() {
    return request({
      url: '/profession/list/addCode' ,
      method: 'get'
    })
  }